package service.provider;

import pojo.Provider;

import java.util.List;

public interface ProviderService {
    public Provider getProviderByProCode(String proCode);

    //根据条件查询供应商表记录数
    public int getProviderCount(String queryProName, String queryProAddress);

    //根据条件查询供应商列表
    public List<Provider> getProviderListByPage(String proName, String proAddress, Integer currentPageNo, Integer pageSize);

    List<Provider> getProviderList();

    boolean addProvider(Provider provider);

    Provider getProviderById(Integer pid);

    boolean modify(Provider provider);

    //判断供应商是否存在
    public Provider selectProCodeExist(String proCode);

    //删除供应商
    public boolean deleteProviderById(int id);

}
